﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Presenter_SSResourceManager;
using Model_SSResourceManager;

namespace WebView_SSResourceManager.Admin
{
    public partial class ManageUsers : System.Web.UI.Page, IViewManageUsers
    {
        private PresenterManageUsers _presenter;

        protected void Page_Load(object sender, EventArgs e)
        {
            _presenter = new PresenterManageUsers(this);
            _presenter.LoadData();
        }

        public void SetDataForUsers(IEnumerable<User> users)
        {
            lstV_UsersView.DataSource = users;
            lstV_UsersView.DataBind();

        }
    }
}